import request from '../../utils/httpRequest'

const memberlevel = '/member/member/memberlevel'

// 查询list
export function getMemberLevelList (param) {
  return request({
    url: `${memberlevel}/list`,
    method: 'get',
    param
  })
}

// 根据ids批量删除
export function deleteMemberLevelByIds (data) {
  return request({
    url: `${memberlevel}/delete`,
    method: 'delete',
    data
  })
}

// 根据id查询
export function getMemberLevelById (id) {
  return request({
    url: `${memberlevel}/info/${id}`,
    method: 'get'
  })
}

// 新增
export function saveMemberLevel (data) {
  return request({
    url: `${memberlevel}/save`,
    method: 'post',
    data
  })
}

// 修改
export function updateMemberLevel (data) {
  return request({
    url: `${memberlevel}/update`,
    method: 'put',
    data
  })
}
